﻿$.MGJ.Payment = [];

(function () {
    var _this = $.MGJ.Payment;

    $.extend($.MGJ.Payment, {
        Bin_type: function (text)
        {
            return text == 1 ? "微信支付" : text==2?"支付宝支付":"银行支付";
        },
        conditionModel: {
            pageIndex: 1,
            pageSize: 10,
            searchKey: null,//查询条件
            type: 0  //0全部 微信：1 支付宝：2 银行卡：3
        },
        //查询交易记录
        Ajax_PageList: function (pageIndex, searchKey,type) {
            var Csearch = $("#Csearch").val();
                _this.conditionModel.type = type;
                _this.conditionModel.pageIndex = pageIndex;
               _this.conditionModel.searchKey = searchKey||null;
                $.L.ajaxHandle({
                    url: ACTION_URL("PagePaymentInfoList", "Payment"),
                    data: {
                        type: $("#Ctype").val(),
                        searchKey: Csearch,
                        pageIndex: _this.conditionModel.pageIndex,
                        pageSize: _this.conditionModel.pageSize,                        
                    },
                    success: function (response) {
                        $("#payTable_Data").L_bindingDataList(response);
                    }
                });
            },
    });
})(jQuery);
